package org.gwt.grin.rebind.input;

import org.gwt.grin.rebind.SENode;

public interface SERCHandler extends SENode {

	/**
     * Get the bitmask formed by or-ing together the mask of all key pressed
     * events we're interested in.  This is used to determine if a Show is
     * currently interested in receiving a keypress; a bit in the bitmask
     * needen't be unique, if a set of keys go together as a group.
     *
     * @see Show#handleKeyPressed(int)
     */
	int getKeyPressedInterestMask(SERCHandler h);

	/**
     * Get the bitmask formed by or-ing together the mask of all key released
     * events we're interested in.  This is used to determine if a Show is
     * currently interested in receiving a keypress; a bit in the bitmask
     * needen't be unique, if a set of keys go together as a group.
     *
     * @see Show#handleKeyReleased(int)
     */
	int getKeyReleasedInterestMask(SERCHandler h);

}
